package jdk8的特性.使用流来收集数据;

import java.util.ArrayList;
import java.util.List;

/**
 * @author idea
 * @data 2018/9/16
 */
public class MockTransaction {

    public static List<Transaction> mockTransactionList(){
        List<Transaction> transactionList=new ArrayList<>();
        for(int i=0;i<10;i++){
            Transaction transaction=new Transaction();
            transaction.setTranNo("china "+i+" currency");
            transaction.setTotalPrice(i*100);
            transactionList.add(transaction);
        }
        return transactionList;
    }

}
